package com.dwzlab.servlet;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * @author zhuxiaodong
 *
 */
public class UrlLoadAjax extends HttpServlet {
	private static final long serialVersionUID = 1L;
       

	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		doPost(request, response);
	}


	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//		System.out.println(request.getParameter("opt"));
		List<String> names = new ArrayList<String>();
		for(int i=0;i<50;i++){
			names.add("merry"+(i+1));
		}
		request.setAttribute("names", names);
		request.getRequestDispatcher("ao.jsp").forward(request, response);
	}

}
